package com.tsd.system.service;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysGroupPerson;
import com.tsd.system.entity.SysGroupPersonExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysGroupPerson服务实现层接口
 *
 * @author zsy
 * @date 2020/12/29 15:52:20
 */
public interface SysGroupPersonService {

    /**
     * 描述：根据id获取SysGroupPerson
     *
     * @param id
     */
    SysGroupPerson getSysGroupPersonById(Long id) throws Exception;

    /**
     * 描述：根据sid获取SysGroupPerson
     *
     * @param sid
     */
    SysGroupPersonExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据id删除SysGroupPerson
     *
     * @param sid
     */
    void deleteSysGroupPerson(List<String> sid, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新SysGroupPerson
     *
     * @param record
     * @param opUser
     */
    void saveSysGroupPerson(SysGroupPerson record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询SysGroupPerson
     *
     * @param params
     * @param page
     */
    List<SysGroupPersonExt> findSysGroupPersons(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询SysGroupPerson
     *
     * @param params
     */
    List<SysGroupPersonExt> findSysGroupPersons(Map<String, Object> params) throws Exception;

    /**
     * 批量删除部门员工
     *
     * @param sidList
     * @param opUser
     * @throws Exception
     */
    void batchDeleteSysGroupPerson(List<String> sidList, SysUser opUser) throws Exception;
}
